import json

import scrapy


class XioamiSpider(scrapy.Spider):
    name = "xioami"

    async def start(self):
        url = "https://www.mi.com/shop/search?keyword=xiaomi%E6%95%B0%E5%AD%97%E7%B3%BB%E5%88%97"
        yield scrapy.Request(
            url, meta={"proxy": "http://d4056956999:b79b5kck@144.48.212.137:17804/"}
        )

    def parse(self, response):
        print(response.text)
